package com.android.myapplication.view.media;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;

import com.android.myapplication.ITest;

import androidx.annotation.Nullable;

public class TestSerivce extends Service {
    public void onCreate(){
        super.onCreate();
    }
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return new ITest.Stub() {
            @Override
            public boolean sendMessage(String message) throws RemoteException {
                if ("hello".equals(message)){
                    return true;
                }
                return false;
            }
        };
    }
}
